home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / jmtl028c.zip / XFERQGLU.C < prev   
C/C++ Source or Header  |  1993-07-22  |  4KB  |  166 lines

  1. /*
  2.  *    Name:                xferqglue.c
  3.  *
  4.  * Description:    Varargs glue routines for taglist functions
  5.  *
  6.  * Copyright:        1992 by David Jones.
  7.  *
  8.  * Distribution:
  9.  *        This source file is released with no restrictions in its use
  10.  *        whatsoever, provided that it is included free of charge in the
  11.  *        source and binary distributions of xferq.library.
  12.  *
  13.  *        In particular, you may use the functions in this file to interface
  14.  *        to the taglist routines in xferq.library without subjecting your
  15.  *        application to the terms and conditions of the GNU General Public
  16.  *        License or the General Library Public License.  The intent is
  17.  *        to prevent the fact that xferq.library is copylefted from being
  18.  *        a deterrent to its use by non-copylefted programs.
  19.  *
  20.  *        Please note that this distribution notice applies only to those
  21.  *        source files having this notice at the top of the file.  All other
  22.  *        source files are subject to the terms and conditions of the
  23.  *        General Public License.
  24.  *
  25.  *        This program is distributed in the hope that it will be useful,
  26.  *        but WITHOUT ANY WARRANTY; without even the implied warranty of
  27.  *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  28.  *        GNU General Public License for more details.
  29.  *
  30.  *        You should have received a copy of the GNU General Public License
  31.  *        along with this program; if not, write to:
  32.  *
  33.  *                The Free Software Foundation        David Jones
  34.  *                675 Mass Ave                            6730 Tooney Drive
  35.  *                Cambridge, MA                            Orleans, Ontario
  36.  *                02139                                        K1C 6R4
  37.  *                USA                                        Canada
  38.  *
  39.  *    Usenet:    gnu@prep.ai.mit.edu                    dej@qpoint.ocunix.on.ca
  40.  *    Fidonet:                                                1:163/109.8
  41.  *
  42.  *        $Log: $
  43.  *
  44.  */
  45.  
  46. #include <utility/tagitem.h>
  47. #include <exec/lists.h>
  48. #include <exec/nodes.h>
  49. #include "xferq/xferq.h"
  50. #include "xferq/xferq_pragmas.h"
  51.  
  52. extern struct Library *XferqBase;
  53.  
  54. struct WorkNode *XfqFindWorkTags(Tag tag, ...)
  55. {
  56.  
  57.     return XfqFindWork((struct TagItem *)&tag);
  58. }
  59.  
  60.  
  61. ULONG XfqAnyWorkTags(void *object, Tag tag, ...)
  62. {
  63.  
  64.     return XfqAnyWork(object, (struct TagItem *)&tag);
  65. }
  66.  
  67.  
  68. struct WorkNode *XfqGetWorkTags(void *object, Tag tag, ...)
  69. {
  70.  
  71.     return XfqGetWork(object, (struct TagItem *)&tag);
  72. }
  73.  
  74.  
  75. void XfqWalkQueueCallBackTags(struct NetAddress *addr, Tag tag, ...)
  76. {
  77.  
  78.     XfqWalkQueueCallBack(addr, (struct TagItem *)&tag);
  79. }
  80.  
  81.  
  82. ULONG XfqBeginSessionTags(struct Session *session, Tag tag, ...)
  83. {
  84.  
  85.     return XfqBeginSession(session, (struct TagItem *)&tag);
  86. }
  87.  
  88.  
  89. void XfqSortSessionTags(struct Session *session, Tag tag, ...)
  90. {
  91.  
  92.     XfqSortSession(session, (struct TagItem *)&tag);
  93. }
  94.  
  95.  
  96. void XfqWalkSessionCallBackTags(struct Session *session, Tag tag, ...)
  97. {
  98.  
  99.     XfqWalkSessionCallBack(session, (struct TagItem *)&tag);
  100. }
  101.  
  102.  
  103. void *XfqHookTags(Tag tag, ...)
  104. {
  105.  
  106.     return XfqHook((struct TagItem *)&tag);
  107. }
  108.  
  109.  
  110. struct NetAddress *XfqGetAddressTags(char *buf, struct NetAddress *addr,
  111.     Tag tag, ...)
  112. {
  113.  
  114.     return XfqGetAddress(buf, addr, (struct TagItem *)&tag);
  115. }
  116.  
  117.  
  118. char *XfqPutAddressTags(void *addr, Tag tag, ...)
  119. {
  120.  
  121.     return XfqPutAddress(addr, (struct TagItem *)&tag);
  122. }
  123.  
  124.  
  125. LONG XfqCmpAddressTags(void *left, void *right, Tag tag, ...)
  126. {
  127.  
  128.     return XfqCmpAddress(left, right, (struct TagItem *)&tag);
  129. }
  130.  
  131.  
  132. struct NetAddress *XfqMapTags(struct NetAddress *addr, Tag tag, ...)
  133. {
  134.  
  135.     return XfqMap(addr, (struct TagItem *)&tag);
  136. }
  137.  
  138.  
  139. ULONG XfqFilterTags(void *object, Tag tag, ...)
  140. {
  141.  
  142.     return XfqFilter(object, (struct TagItem *)&tag);
  143. }
  144.  
  145.  
  146. void *XfqCreateObjectTags(ULONG type, Tag tag, ...)
  147. {
  148.  
  149.     return XfqCreateObject(type, (struct TagItem *)&tag);
  150. }
  151.  
  152.  
  153. void XfqExamObjectTags(void *object, Tag tag, ...)
  154. {
  155.  
  156.     XfqExamObject(object, (struct TagItem *)&tag);
  157. }
  158.  
  159.  
  160. void *XfqModifyObjectTags(void *object, Tag tag, ...)
  161. {
  162.  
  163.     return XfqModifyObject(object, (struct TagItem *)&tag);
  164. }
  165.  
  166.